package com.example.wanandroid.service;

import com.example.wanandroid.pojo.TbCollection;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Select;

import java.util.HashMap;

/**
 * @Desc TODO
 * @Date 2020/4/19 14:03
 */
public interface CollectionService {
    int deleteByPrimaryKey(Long id);

    int insert(TbCollection record);

    TbCollection selectByPrimaryKey(Long id);

    int updateByPrimaryKey(TbCollection record);

    TbCollection selectByQuestionUserId(Long questionId, long userid);

    PageInfo<HashMap<String, Object>> getByCollectionList(long userid, int page, int pageSize);
}
